package com.twu.biblioteca;

import java.util.LinkedList;
import java.util.List;

public class MovieList {
    private final List<Movie> movies;

    public MovieList(List<Movie> movies) {
        this.movies = movies;
    }
    public List<String> getOptions() {
        final LinkedList<String> strings = new LinkedList<String>();

        for (Movie movie : movies) {
            strings.add(movie.toString());
        }
        return strings;
    }

    public Movie get(int movieIndex) {
        return movies.get(movieIndex);
    }

    public int size() {
        return movies.size();
    }
}
